var pattern = '^((([0-9a-f]{2}[-]){5}|([0-9a-f]{2}[-]){7}|([0-9a-f]{2}[:]){5})[0-9a-f]{2}|([0-9a-f]{4}[\.]){2}[0-9a-f]{4})$';
var flags = 'i';